values = [1, 1, 2, 3, 5]
nums = set(values)
# print(nums)

def checkit(num):
    if num in nums:
        return True
    else:
        return False

for i in filter(checkit, values):
    print(i, end=' ')
#输出结果为 1 1 2 3 5